waf_security_settings
Configuration for Mapping Learning group with Learning settings resource.
Read/write properties
configured_threshold<Double>
the number of times a violation needs to occur for it to be ready to be deployed.
enabled<Boolean>
TRUE when this Security check is enabled for Learning.
is_autodeploy<Boolean>
when TRUE NetScaler Console will deploy if user does not respond to alerts.
parent_id<String>
Id of the parent resource.
id<String>
Id is system generated key for WAF Profile - NetScaler map.
violation_id<Integer>
NetScaler WAF Security checks have unique ID i.e violation_id.
violation_name<String>
violation name used for each violation id.
Maximum length = 512
configured_time_window<Double>
time duration in seconds for which a rule's hit are accounted for in rule removal.
parent_name<String>
Resource name of parent resource.
configured_grace_period<Double>
time before a rule is auto deployed.
check_type<Integer>
Check type can be WAF Profile name based (0), Application name based (1), Rule removal (2) .
Operations
NOTE: In request payload, Mandatory parameters are marked red and bold.
The following parameters can be used in the nitro request :
onerror <String_value>
Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE
URL:https://<MGMT-IP>/nitro/v2/config/waf_security_settings
Query-parameters:
filter
https://<MGMT-IP>/nitro/v2/config/waf_security_settings?filter=property-name1:property-value1,property-name2:property-value2
Use this query-parameter to get the filtered set of waf_security_settings resources configured on the system. You can set a filter on any property of the resource.
pagesize=#no&pageno=#no
https://<MGMT-IP>/nitro/v2/config/waf_security_settings?pagesize=#no&pageno=#no
Use this query-parameter to get the waf_security_settings resources in chunks.
count
https://<MGMT-IP>/nitro/v2/config/waf_security_settings?count=yes
Use this query-parameter to get the count of waf_security_settings resources.
HTTPS Method:GET
Request Headers:
Accept:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Headers:
Content-Type:application/json
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "waf_security_settings":[{
"configured_threshold":<Double_value>,
"enabled":<Boolean_value>,
"is_autodeploy":<Boolean_value>,
"parent_id":<String_value>,
"id":<String_value>,
"violation_id":<Integer_value>,
"violation_name":<String_value>,
"configured_time_window":<Double_value>,
"parent_name":<String_value>,
"configured_grace_period":<Double_value>,
"check_type":<Integer_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/waf_security_settings/id_value<String>
HTTPS Method:GET
Request Headers:
Accept:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Headers:
Content-Type:application/json
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "waf_security_settings":[{
"configured_threshold":<Double_value>,
"enabled":<Boolean_value>,
"is_autodeploy":<Boolean_value>,
"parent_id":<String_value>,
"id":<String_value>,
"violation_id":<Integer_value>,
"violation_name":<String_value>,
"configured_time_window":<Double_value>,
"parent_name":<String_value>,
"configured_grace_period":<Double_value>,
"check_type":<Integer_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/waf_security_settings/id_value<String>
HTTPS Method:PUT
Request Headers:
Content-Type:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Request Payload:JSON
{"waf_security_settings":{
"configured_grace_period":<Double_value>,
"configured_threshold":<Double_value>,
"enabled":<Boolean_value>,
"configured_time_window":<Double_value>,
"id":<String_value>,
"is_autodeploy":<Boolean_value>,
"violation_id":<Integer_value>,
"parent_name":<String_value>,
"violation_name":<String_value>,
"parent_id":<String_value>,
"check_type":<Integer_value>}}
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "waf_security_settings":[{
"configured_threshold":<Double_value>,
"enabled":<Boolean_value>,
"is_autodeploy":<Boolean_value>,
"parent_id":<String_value>,
"id":<String_value>,
"violation_id":<Integer_value>,
"violation_name":<String_value>,
"configured_time_window":<Double_value>,
"parent_name":<String_value>,
"configured_grace_period":<Double_value>,
"check_type":<Integer_value>}]}